package com.fast.modules.acd.service.impl.jvm;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.socket.WebSocketSession;

import com.fast.modules.acd.service.ClientSessionStorage;

public class ClientSessionStorageImpl implements ClientSessionStorage {
	
	
	private static final Map<String, WebSocketSession> map = new HashMap<>();
 
	@Override
	public void addSession(String clientID, WebSocketSession session) {
		map.put(clientID, session);
	}

	@Override
	public WebSocketSession getSession(String clientID) {
		return map.get(clientID);
	}

}
